package com.woniu.aimd.config.ai.chatclient;

import com.woniu.aimd.prompt.AiDialogPrompt;
import org.springframework.ai.chat.client.ChatClient;
import org.springframework.ai.chat.client.advisor.SimpleLoggerAdvisor;
import org.springframework.ai.chat.client.advisor.vectorstore.QuestionAnswerAdvisor;
import org.springframework.ai.openai.OpenAiChatModel;
import org.springframework.ai.vectorstore.VectorStore;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

@Configuration
public class EditorChatClient {
    @Bean
    public ChatClient insertChatClient(OpenAiChatModel openAiChatModel){
        return  ChatClient.builder(openAiChatModel)
                .defaultAdvisors(new SimpleLoggerAdvisor()).build();

    }

}
